package com.dries.security.app.social.impl;

import com.dries.security.core.social.config.SocialAuthFilterPostProcessor;
import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
import org.springframework.social.security.SocialAuthenticationFilter;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/9/20 17:15
 */
public class AppSocialConfigurerPostProcessor implements SocialAuthFilterPostProcessor {

    @Resource
    private AuthenticationSuccessHandler driesAuthSuccessHandler;

    @Override
    public void process(SocialAuthenticationFilter socialAuthenticationFilter) {
        socialAuthenticationFilter.setAuthenticationSuccessHandler(driesAuthSuccessHandler);
    }
}
